type IExternal = (path: string) => boolean;

/* 判断路径是否带有外链协议 */
export const isExternal:IExternal = (path) => {
  return /^(https?:|mailto:|tel:)/.test(path);
}
